package org.sbbs.base.demo.entity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.hibernate.annotations.Comment;
import org.hibernate.envers.AuditOverride;
import org.hibernate.envers.Audited;
import org.sbbs.base.jpa.entity.BaseAuditEntity;

/**
 *
 * @author jenkins
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Entity
@Audited
@AuditOverride(forClass = BaseAuditEntity.class, isAudited = true)
@Table(name = "base_audit_entity")
@Comment("审计样例表")
public class BaseAuditBean extends BaseAuditEntity {

    /**
     * 名称
     */
    @Column(name = "name", length = 50)
    @Comment("名称")
    private String name;

    @Column(name = "remark", length = 50)
    private String remark;

}
